﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Zhao.Models.Entity
{
    /// <summary>
    /// 预约表（核心业务表）
    ///</summary>
    [SugarTable("Appointments")]
    public class Appointments
    {
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "AppointmentID", IsPrimaryKey = true, IsIdentity = true)]
        public int AppointmentID { get; set; }

        /// <summary>
        /// 备  注:场地Id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "FieldID")]
        public int FieldID { get; set; }

        /// <summary>
        /// 备  注:预约开始时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "StartTime")]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 备  注:预约结束时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "EndTime")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 备  注:业务状态：0-待支付，3-已预约，5-已完成，7-已取消
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public short Status { get; set; }

        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "CreatedAt")]
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "UpdatedAt")]
        public DateTime? UpdatedAt { get; set; }
        /// <summary>
        /// 备  注: 预约场地的日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "DisplayDate")]

        public string DisplayDate { get; set; }
        /// <summary>
        /// 备  注: 预约人名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Name")]

        public string Name { get; set; }
        /// <summary>
        /// 备  注: 预约人手机号码
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Mobile ")]

        public string Mobile { get; set; }
        /// <summary>
        /// 备  注: 球馆Id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "VenueID ")]
        public Guid VenueID { get; set; }
        /// <summary>
        /// 备  注: 订单总价
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "Price ")]
        public decimal Price { get; set; }
        /// <summary>
        /// 备  注: 预约类型(小程序预约和场馆预约)
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "AppointmentType ")]
        public short AppointmentType { get; set; }
        /// <summary>
        /// 备  注: 如果是小程序预约需要有订单id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "OrderId ")]
        public int? OrderId { get; set; }

    }

}